package cn.com.flat.mybatis.jdbc.dialect;

import cn.com.flat.utils.DbConfig;

/**
 * 标题: 数据库方言辅助类
 * <p>
 * 描述: 数据库方言辅助类
 * <p>
 * 版权：Copyright (c) 2016
 * <p>
 *
 * @author 张顺
 * @version 1.0
 * @created 2016/11/09/23:06
 */
public class DialectHelper {
    private static Dialect dialect = null;

    static{
        String dialectPro = DbConfig.getProperty("db.dialect").trim();
        if ("MYSQL".equalsIgnoreCase(dialectPro)){
            dialect = new MySqlDialect();
        }
    }

    public static Dialect getCurrentDialect(){
        return dialect;
    }
}
